import request from '@/utils/request'

const userHttp = {
	checkLogin : ()=>{
		return request({
		    url: '/admin/checkLogin',
		    method: 'get'
	    })
	},
	logout : ()=>{
		return request({
		    url: '/admin/logoutType',
		    method: 'get'
	    })
	},
	queryRoles : ()=>{
		return request({
		    url: '/dev-basp-user/indexModule/queryRoles',
		    method: 'get'
	    })
	},
	queryMenus : (roleId)=>{
		return request({
		    url: '/dev-basp-user/indexModule/queryMenus',
		    method: 'get',
		    params:{roleId}
	    })
	},
	queryBtns:(roleId,moduleId)=>{
		return request({
		    url: '/dev-basp-user/indexModule/queryBtns',
		    method: 'get',
		    params:{roleId,moduleId}
	    })
	},
}

export {
    userHttp
}


